package main

import (
	"github.com/gin-gonic/gin"
	"video-comments/api"
	"video-comments/config"
	"video-comments/inits"
)

func main() {

	config.Init()
	inits.InitMysql()
	inits.InitRedis()

	router := gin.Default()

	api.LoadRouter(router)

	router.Run(": 8031") // 监听并在 0.0.0.0:8080 上启动服务
}
